package com.mall.module.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.time.LocalDate;

@Data
@ApiModel(description = "用户信息更新数据传输对象")
public class UserUpdateDTO {

    @ApiModelProperty(value = "昵称")
    @Size(max = 64, message = "昵称长度不能超过64个字符")
    private String nickname;

    @ApiModelProperty(value = "性别(0:未知 1:男 2:女)")
    private Integer gender;

    @ApiModelProperty(value = "生日")
    private String birthday;

    @ApiModelProperty(value = "头像URL")
    private String avatar;
} 